import  React,{Component} from 'react'
import { Route, Switch} from 'react-router-dom'

import '../../static/css/main.less'

import Middle from '../mobile/middle'
import Login_mobile from "./client/login/login";
import Register_mobile from "./client/regist/regist";

class Home extends Component{
    constructor(props) {
        super(props);
        this.state={}
    }
    render() {
        return　(
                    <Switch>
                        <Route exact path='/login' component={Login_mobile} name='login'/>
                        <Route exact path='/register' component={Register_mobile} name='register'/>
                    <Route path='/' component={Middle} />
                    </Switch>
        )
    }
}

export default Home
